package com.ydj.framework.module.init.entity;

import com.ydj.framework.mysql.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

@Getter
@Setter
@Entity
@Accessors(chain = true)
@Table(name = "fw_init_version", uniqueConstraints = {@UniqueConstraint(columnNames = {"name"})})
@org.hibernate.annotations.Table(appliesTo = "fw_init_version", comment = "公共-继续初始化版本号")
public class FwInitVersion extends BaseEntity {
    @Column(length = 128)
    private String name;

    @Column(columnDefinition = "int default 0")
    private Integer version;
}